package oop2;

/**
 * @author oldliu
 * @since 1.0
 */
public class Circle {
    double r;
    //坐标
    int x;
    int y;

    public void show() {
        System.out.println("圆的半径是" + r);
        System.out.println("圆的坐标是" + x + "," + y);
    }

    public double area() {
        return 3.14 * r * r;
    }

    public double zhouchang() {
        return 2 * 3.14 * r;
    }
}
